use clap3 instead of structopt#10632
use clap3 instead of structopt#10632paritytech-processbot[bot] merged 14 commits intoparitytech:masterfrom koushiro:use-clap3
Conversation
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
bkchr
left a comment
There was a problem hiding this comment.
Ty for doing this. I just skimmed it, but it looks good!
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
bkchr
left a comment
There was a problem hiding this comment.
Ty!
The amount of changes looks big, but as we already touch all these lines or most of them we can directly simplify all the code.
And also, please stop using force pushes.
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
| case_insensitive = true, | ||
| possible_values = &Database::variants(), | ||
| ignore_case = true, | ||
| possible_values = Database::variants(), |
There was a problem hiding this comment.
No replacement to arg_enum here?
There was a problem hiding this comment.
if I use arg_enum here, do I need to remove the variants method of Database and impl std::str::FromStr for Database?
There was a problem hiding this comment.
I have no idea what that means, I'm just pointing out how it looks different from the other enums where you put arg_num.
There was a problem hiding this comment.
Because the variants method of other enums are generated by structopt, but the Database::variants and WasmExecutionMethod::variants are implemented manually.
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
|
@koushiro CI is still not happy. |
|
bot merge |
|
Waiting for commit status. |
|
Merge cancelled due to error. Error: Checks failed for 38f7b7c |
|
@bkchr could you merge this PR? I don't want to resolve the conflicts again :( |
|
bot merge |
|
/tip small |
|
A small tip was successfully submitted for koushiro (15XuanNimo5951s3RjFTPX1AvYVnCwfr3SDhb3AV4fQF3LpK on polkadot). |
* use clap3 instead of structopt Signed-off-by: koushiro <koushiro.cqx@gmail.com> * format Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update ss58-registry and revert some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Fix clippy and doc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update clap to 3.0.7 Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Apply review suggestions Signed-off-by: koushiro <koushiro.cqx@gmail.com> * remove useless option long name Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
* use clap3 instead of structopt Signed-off-by: koushiro <koushiro.cqx@gmail.com> * format Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update ss58-registry and revert some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Fix clippy and doc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update clap to 3.0.7 Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Apply review suggestions Signed-off-by: koushiro <koushiro.cqx@gmail.com> * remove useless option long name Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
* chore: bump deps to Polkadot v0.9.17 * fix: rm Default requirement for AccountId types * fix: use clap3 instead of structop paritytech/substrate#10632 * fix: AccountId doesnt impl Default anymore * chore: bump deps * chore: bump clap * fix: clippy * fix: EnsureDidOrigin * fix: remove unwanted dependency leftover
* use clap3 instead of structopt Signed-off-by: koushiro <koushiro.cqx@gmail.com> * format Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update ss58-registry and revert some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Fix clippy and doc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update clap to 3.0.7 Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Apply review suggestions Signed-off-by: koushiro <koushiro.cqx@gmail.com> * remove useless option long name Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
* use clap3 instead of structopt Signed-off-by: koushiro <koushiro.cqx@gmail.com> * format Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update ss58-registry and revert some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Fix clippy and doc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * update clap to 3.0.7 Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Apply review suggestions Signed-off-by: koushiro <koushiro.cqx@gmail.com> * remove useless option long name Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
Description
use
clapv3 instead ofstructopt(Close #10651)waiting for a new version (includes the paritytech/ss58-registry#67) ofss58-registryto be released firstlypolkadot companion: paritytech/polkadot#4689
cumulus companion: paritytech/cumulus#895
Polkadot address: 15XuanNimo5951s3RjFTPX1AvYVnCwfr3SDhb3AV4fQF3LpK